package com.nmf.pc.util;

import org.apache.commons.lang3.StringUtils;

public class StringTuoMingUtils {
	public static String getOne(String str) {
		String ddstr = "";
		if(StringUtils.isNoneBlank(str)) {
			ddstr = str.substring(0, 1)+createAsterisk(str.length()-1);
		}
		return ddstr;
	}
	
	public static String createAsterisk(int length) {  
	    StringBuffer stringBuffer = new StringBuffer();  
	    for (int i = 0; i < length; i++) {  
	        stringBuffer.append("*");  
	    }  
	    return stringBuffer.toString();  
	}  
}
